package cc.imos.module.tasks;

import com.xiaoleilu.hutool.date.DateUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * 定时任务
 */
@Slf4j
//@Component
public class BasicTasks {

    @Scheduled(fixedRate = 60 * 1000)
    public void reportCurrentTime() {
        log.debug("现在时间：{}", DateUtil.now());
    }
}
